//
//  HTCustomLayout.h
//  HeartTravel
//
//  Created by lanou on 15/10/26.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HTCustomLayout;

@protocol HTCustomLayoutDelegate <NSObject>

@optional
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(HTCustomLayout *)layout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface HTCustomLayout : UICollectionViewFlowLayout

@property (nonatomic, assign) id<HTCustomLayoutDelegate>delegate;

// 自定义初始化方法,参数由外界定义一共有几列
- (instancetype)initWithNumberOfColumns:(NSUInteger)columns;

@end
